package com.wanqian.redis.config;

import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.annotation.EnableJms;

import javax.jms.Topic;

/**
 * @Author: wanqian
 * @Date: 2021/3/13 15:09
 */
@Configuration
//@EnableJms
public class ActiveMQConfig {

    @Value("${queueName}")
    private String queueName;

    @Bean
    public Topic queue() {
        return new ActiveMQTopic(queueName);
    }
}
